import axios from 'axios'

// 获取表格,查
export function getWordApi(params) {
  return axios({
    url: '/mock/content/word',
    method: 'get',
    params
  })
}
// 获取学科
export function getAllSubjectApi() {
  return axios({
    url: '/mock/content/allSubject',
    method: 'get'
  })
}
// 增
export function addWordApi(data) {
  return axios({
    url: '/mock/content/word',
    method: 'post',
    data
  })
}
// 回显
export function editWordApi(params) {
  return axios({
    url: '/mock/content/word',
    method: 'get',
    params
  })
}
// 修改
export function uploadWordApi(data) {
  return axios({
    url: '/mock/content/word',
    method: 'put',
    data
  })
}
// 删除
export function deleteWordApi(params) {
  return axios({
    url: '/mock/content/word',
    method: 'delete',
    params
  })
}
